<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

	<link type="text/css" rel="stylesheet" href="../resources/css/bootstrap.min.css" />
	<link type="text/css" rel="stylesheet" href="../resources/css/style.css" />
	<script type="text/javascript" src="../resources/js/jquery.js"></script>
	<script type="text/javascript" src="../resources/js/bootstrap.min.js"></script>
	
<c:if test="${!empty listLichLamViec}">
 <h2 class="day" ><fmt:formatDate value="${ngay}" pattern="dd-MM-yyyy" /></h2>
	<table class="table table-hover" id="table">
		<tr>
			<th width="80">ID</th>
			<th width="80">Tuần</th>
			<th width="120">Ngày</th>
			<th width="80">Thời gian bắt đầu</th>
			<th width="120">Thời gian kết thúc</th>
			<th width="120">Nội dung</th>
			<th width="120">Địa điểm</th>
			<th width="120">Ghi chú</th>			
		</tr>
		<c:forEach items="${listLichLamViec}" var="lichlamviec">
		<tr id="rows">
			<td>${lichlamviec.idLichLamViec}</td>
			<td>${lichlamviec.tuan}</td>
			 <td><fmt:formatDate value="${lichlamviec.ngay}" pattern="dd-MM-yyyy" /></td>
			 <td><fmt:formatDate value="${lichlamviec.thoiGianBatDau}" pattern="hh:mm" /></td>
			 <td><fmt:formatDate value="${lichlamviec.thoiGianKetThuc}" pattern="hh:mm" /></td>
			 <td>${lichlamviec.noiDung}</td>
			 <td>${lichlamviec.diaDiem}</td>
			 <td>${lichlamviec.ghiChu}</td>
		 </tr>
		</c:forEach>
	</table>
</c:if>
